package com.example.droolstool.controller;

import com.example.droolstool.service.DroolsServiceImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * drools控制层
 *
 * @Author 赵云龙
 * @Date 2020/6/6
 * @Description TODO
 */

@RestController
@RequestMapping("test")
public class DroolsController {

    @Resource
    DroolsServiceImpl droolsService;


    @GetMapping("/showRults")
    public String showRults(){
        return droolsService.fireRule();
    }
}
